<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Admin Page</title>
</head>
<body>
	<br />
	<div align="center">
		<p>Welcome ADMIN!</p>
		<table border="1" style="width: 300px; height: 100px">

			<tr>
				<th>ID</th>
				<th>FIRST_NAME</th>
				<th>LAST_NAME</th>
				<th>DEPARTMENT</th>
				<th>SALARY</th>
				<th></th>
				<th></th>
			</tr>

			<c:forEach var="emp" items="${employees}">

				<tr>
					<td>${emp.id}</td>
					<td>${emp.firstName}</td>
					<td>${emp.lastName}</td>
					<td>${emp.department}</td>
					<td>${emp.salary}</td>
					<!-- action="delete.do?userId=${id}" -->
					<td><form action="delete.do" method="GET" name="deleteForm">
							<a href="delete.do?id=${emp.id}">Delete</a>
							<!--<input type="submit" value="Delete" />-->
						</form></td>

					<td><form action="edit.do" method="GET" name="editForm">
							<a href="edit.do?id=${emp.id}">Edit</a>
						</form></td>
				</tr>

			</c:forEach>
		</table>

		<!-- <p>
			<em style="color: red;">SHOW: ${errMsg}</em>
		</p> -->

		<!-- <form action="edit.do" method="POST" name="editForm">
			<input type="button" value="Edit"
				onclick="document.forms['editForm'].submit();" />
		</form> -->

	</div>
</body>
</html>